<h1>Tweets </h1>
<table>
<tr>
<th>Tweets</th>
<th>Actions</th>
</tr>

<?php foreach($result as $post): ?>
  <tr style="background-color:#FFFFFF">
    <td><?php echo $post['Post']['text']; ?> </td>
    
  	<td>
		<?php echo $this->Html->link('Archive', 
		array('action'=>'export', $post['Post']['postID'])); ?>
		<?php
                    echo $this->Html->link($this->Html->image('delete.png', array(
                                'alt' => 'Delete Tweet')
                            ), array(
                        'action' => 'deleteTweets',
                        $post['Post']['postID']
                            ), array(
                        'escape' => false,
                        'confirm' => 'Are you sure about deleting this tweet?'
                    ));
                    ?>  
							</td>
  </tr>
  <?php endforeach; ?>

</table>